/*
 * *******************************************************************
 *   @项目名称: BHex Android
 *   @文件名称: OtcListResponse.java
 *   @Date: 19-1-14 上午10:23
 *   @Author: ppzhao
 *   @Description:
 *   @Copyright（C）: 2019 BlueHelix Inc.   All rights reserved.
 *   注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的.
 *  *******************************************************************
 */

package io.bhex.sdk.otc.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

import io.bhex.baselib.network.response.BaseResponse;

public class OtcListResponse extends BaseResponse {


    /**
     * count : 1
     * items : [{"id":"369401402682712","accountId":"720193876362027","nickName":"江旭","tokenId":"BTC","currencyId":"CNY","side":1,"priceType":0,"price":"22222.00","premium":"0","lastQuantity":"0.420000","quantity":"5.000000","frozenQuantity":"3.140000","executedQuantity":"1.440000","minAmount":"100.00","maxAmount":"100000.00","remark":"","status":10,"createDate":"1545799241000","payments":[0,1,2],"orderNum":0,"finishNum":0,"recentOrderNum":99,"recentExecuteRate":51}]
     */

    private int count;
    private List<OtcItemBean> items;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<OtcItemBean> getItems() {
        return items;
    }

    public void setItems(List<OtcItemBean> items) {
        this.items = items;
    }

    public static class OtcItemBean implements Serializable {
        /**
         * id : 369401402682712
         * accountId : 720193876362027
         * nickName : 江旭
         * tokenId : BTC
         * currencyId : CNY
         * side : 1
         * priceType : 0
         * price : 22222.00
         * premium : 0
         * lastQuantity : 0.420000
         * quantity : 5.000000
         * frozenQuantity : 3.140000
         * executedQuantity : 1.440000
         * minAmount : 100.00
         * maxAmount : 100000.00
         * remark :
         * status : 10
         * createDate : 1545799241000
         * payments : [0,1,2]
         * orderNum : 0
         * finishNum : 0
         * recentOrderNum : 99
         * recentExecuteRate : 51
         */

        private String id;
        private String accountId;
        private String nickName;
        private String tokenId;
        private String tokenName;
        private String currencyId;
        private int side;
        private int priceType;
        private String price;
        private String premium;
        private String lastQuantity;
        private String quantity;
        private String frozenQuantity;
        private String executedQuantity;
        private String minAmount;
        private String maxAmount;
        private String remark;
        private int status;
        private String createDate;
        private int orderNum;
        private int finishNum;
        private int recentOrderNum;
        private int recentExecuteRate;
        private List<Integer> payments;
        private int sortId;
        /**
         * fee : 0.120
         * tradeFeeRate : {"orgId":"6001","tokenId":"USDT","makerBuyTradeFee":"0.001","makerSellTradeFee":"0.001"}
         * amountScale : 2
         */

        private String fee;
        private TradeFeeRateBean tradeFeeRate;
        /**
         * tokenConfig : {"minQuote":"16","maxQuote":"30000","scale":2,"upRange":"120","downRange":"80"}
         * currencyConfig : {"scale":3,"amountScale":2}
         */

        private TokenConfigBean tokenConfig;
        private CurrencyConfigBean currencyConfig;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getTokenId() {
            return tokenId;
        }

        public void setTokenId(String tokenId) {
            this.tokenId = tokenId;
        }

        public String getTokenName() {
            return tokenName;
        }

        public void setTokenName(String tokenName) {
            this.tokenName = tokenName;
        }

        public String getCurrencyId() {
            return currencyId;
        }

        public void setCurrencyId(String currencyId) {
            this.currencyId = currencyId;
        }

        public int getSide() {
            return side;
        }

        public void setSide(int side) {
            this.side = side;
        }

        public int getPriceType() {
            return priceType;
        }

        public void setPriceType(int priceType) {
            this.priceType = priceType;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getPremium() {
            return premium;
        }

        public void setPremium(String premium) {
            this.premium = premium;
        }

        public String getLastQuantity() {
            return lastQuantity;
        }

        public void setLastQuantity(String lastQuantity) {
            this.lastQuantity = lastQuantity;
        }

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public String getFrozenQuantity() {
            return frozenQuantity;
        }

        public void setFrozenQuantity(String frozenQuantity) {
            this.frozenQuantity = frozenQuantity;
        }

        public String getExecutedQuantity() {
            return executedQuantity;
        }

        public void setExecutedQuantity(String executedQuantity) {
            this.executedQuantity = executedQuantity;
        }

        public String getMinAmount() {
            return minAmount;
        }

        public void setMinAmount(String minAmount) {
            this.minAmount = minAmount;
        }

        public String getMaxAmount() {
            return maxAmount;
        }

        public void setMaxAmount(String maxAmount) {
            this.maxAmount = maxAmount;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public int getOrderNum() {
            return orderNum;
        }

        public void setOrderNum(int orderNum) {
            this.orderNum = orderNum;
        }

        public int getFinishNum() {
            return finishNum;
        }

        public void setFinishNum(int finishNum) {
            this.finishNum = finishNum;
        }

        public int getRecentOrderNum() {
            return recentOrderNum;
        }

        public void setRecentOrderNum(int recentOrderNum) {
            this.recentOrderNum = recentOrderNum;
        }

        public int getRecentExecuteRate() {
            return recentExecuteRate;
        }

        public void setRecentExecuteRate(int recentExecuteRate) {
            this.recentExecuteRate = recentExecuteRate;
        }

        public List<Integer> getPayments() {
            return payments;
        }

        public void setPayments(List<Integer> payments) {
            this.payments = payments;
        }

        public String getFee() {
            return fee;
        }

        public void setFee(String fee) {
            this.fee = fee;
        }

        public TradeFeeRateBean getTradeFeeRate() {
            return tradeFeeRate;
        }

        public void setTradeFeeRate(TradeFeeRateBean tradeFeeRate) {
            this.tradeFeeRate = tradeFeeRate;
        }

        public TokenConfigBean getTokenConfig() {
            return tokenConfig;
        }

        public void setTokenConfig(TokenConfigBean tokenConfig) {
            this.tokenConfig = tokenConfig;
        }

        public CurrencyConfigBean getCurrencyConfig() {
            return currencyConfig;
        }

        public void setCurrencyConfig(CurrencyConfigBean currencyConfig) {
            this.currencyConfig = currencyConfig;
        }

        public int getSortId() {
            return sortId;
        }

        public void setSortId(int sortId) {
            this.sortId = sortId;
        }

        public static class TokenConfigBean implements Serializable{
            /**
             * minQuote : 16
             * maxQuote : 30000
             * scale : 2
             * upRange : 120
             * downRange : 80
             */

            private String minQuote;
            private String maxQuote;
            private int scale;
            private String upRange;
            private String downRange;

            public String getMinQuote() {
                return minQuote;
            }

            public void setMinQuote(String minQuote) {
                this.minQuote = minQuote;
            }

            public String getMaxQuote() {
                return maxQuote;
            }

            public void setMaxQuote(String maxQuote) {
                this.maxQuote = maxQuote;
            }

            public int getScale() {
                return scale;
            }

            public void setScale(int scale) {
                this.scale = scale;
            }

            public String getUpRange() {
                return upRange;
            }

            public void setUpRange(String upRange) {
                this.upRange = upRange;
            }

            public String getDownRange() {
                return downRange;
            }

            public void setDownRange(String downRange) {
                this.downRange = downRange;
            }
        }

        public static class CurrencyConfigBean implements Serializable{
            /**
             * scale : 3
             * amountScale : 2
             */

            private int scale;
            private int amountScale;

            public int getScale() {
                return scale;
            }

            public void setScale(int scale) {
                this.scale = scale;
            }

            public int getAmountScale() {
                return amountScale;
            }

            public void setAmountScale(int amountScale) {
                this.amountScale = amountScale;
            }
        }
    }
}
